/**
 * Created by zhaojing on 2017/1/20.
 */

import Vue from 'vue';
import VueI18n from 'vue-i18n';
import messages from '../module/invite/lang';

import './base/init';
import lib from '../common/lib';
import Loading from '../../grsc-base/component/Loading.vue';
import Popover from '../../grsc-base/component/Popover.vue';
import LangPopover from '../component/LangPopover.vue';
import Invite from '../module/invite/main';


Vue.use(VueI18n);

if (lib.isMobile()) {
    // 移动端跳转
    let location = window.location;
    location.href = location.origin + '/m_invite.html#/pull-new-details';
}


let i18n =  new VueI18n({
    locale: window.app.LANG,
    messages
});

const app = new Vue({
    i18n,
    components: {
        Invite,
        Loading,
        LangPopover,
        Popover
    },
    methods: {
    }
}).$mount('#app');
